<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/23
 * Time: 14:30
 */

namespace Model;

use Shop\Model;

class IndexModel extends Model{
    //修改数据
    public function set_upd($arr){
       return $this->pdo_upd('sh_admin',$arr,' limit 1');
    }

    //查询数据
    public function get(){
        return $this->pdo_sel("select * from sh_admin limit 1");
    }
}